/// 页面状态异常管理
import 'package:flutter/material.dart';

abstract class OSState<T extends StatefulWidget> extends State<T>{
  @override
  void setState(fn) {
    // TODO: implement setState
    if(mounted){
      super.setState(fn);
    } else {
      print("OSState:当前页面${toString()}已销毁，setState无效");
    }
  }
}